home *** CD-ROM | disk | FTP | other *** search
/ Aminet 21 / Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso / Aminet / gfx / show / gs_src_gs.lha / gs5.03 / ugcclib.mak < prev    next >
Makefile  |  1997-06-17  |  5KB  |  159 lines

  1. #    Copyright (C) 1995, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  2. # This file is part of Aladdin Ghostscript.
  3. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  4. # or distributor accepts any responsibility for the consequences of using it,
  5. # or for whether it serves any particular purpose or works at all, unless he
  6. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  7. # License (the "License") for full details.
  8. # Every copy of Aladdin Ghostscript must include a copy of the License,
  9. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  10. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  11. # under certain conditions described in the License.  Among other things, the
  12. # License requires that the copyright notice and this notice be preserved on
  13. # all copies.
  14.  
  15. # makefile for Unix / gcc library testing.
  16.  
  17. include version.mak
  18.  
  19. gsdir = /usr/local/share/ghostscript
  20. gsdatadir = $(gsdir)/$(GS_DOT_VERSION)
  21. GS_DOCDIR=$(gsatadir)/doc
  22. GS_LIB_DEFAULT=$(gsdatadir):$(gsdir)/fonts
  23. SEARCH_HERE_FIRST=1
  24. GS_INIT=gs_init.ps
  25.  
  26. GENOPT=-DDEBUG
  27. GS=gslib
  28.  
  29. JSRCDIR=jpeg-6a
  30. JVERSION=6
  31.  
  32. PSRCDIR=libpng
  33. PVERSION=96
  34. SHARE_LIBPNG=0
  35. LIBPNG_NAME=png
  36.  
  37. ZSRCDIR=zlib
  38. SHARE_ZLIB=0
  39. ZLIB_NAME=z
  40.  
  41. CONFIG=
  42.  
  43. CC=gcc
  44. CCLD=$(CC)
  45.  
  46. #GCFLAGS=-Wall -Wpointer-arith -Wstrict-prototypes -Wwrite-strings
  47. GCFLAGS=-Dconst= -Wall -Wpointer-arith -Wstrict-prototypes
  48. CFLAGS=-g -O $(GCFLAGS) $(XCFLAGS)
  49. LDFLAGS=$(XLDFLAGS)
  50. EXTRALIBS=
  51. XINCLUDE=-I/usr/local/X/include
  52. XLIBDIRS=-L/usr/X11/lib
  53. XLIBDIR=
  54. XLIBS=Xt Xext X11
  55.  
  56. FPU_TYPE=1
  57.  
  58. FEATURE_DEVS=patlib.dev path1lib.dev hsblib.dev
  59. COMPILE_INITS=0
  60. BAND_LIST_STORAGE=file
  61. BAND_LIST_COMPRESSOR=zlib
  62. FILE_IMPLEMENTATION=stdio
  63. DEVICE_DEVS=x11.dev x11mono.dev x11alpha.dev x11cmyk.dev\
  64.  djet500.dev\
  65.  pbmraw.dev pgmraw.dev ppmraw.dev
  66. DEVICE_DEVS1=
  67. DEVICE_DEVS2=
  68. DEVICE_DEVS3=
  69. DEVICE_DEVS4=
  70. DEVICE_DEVS5=
  71. DEVICE_DEVS6=
  72. DEVICE_DEVS7=
  73. DEVICE_DEVS8=
  74. DEVICE_DEVS9=
  75. DEVICE_DEVS10=
  76. DEVICE_DEVS11=
  77. DEVICE_DEVS12=
  78. DEVICE_DEVS13=
  79. DEVICE_DEVS14=
  80. DEVICE_DEVS15=
  81.  
  82. MAKEFILE=ugcclib.mak
  83.  
  84. AK=
  85. CCAUX=$(CC)
  86. CCC=$(CC) $(CCFLAGS) -c
  87. CCLEAF=$(CCC)
  88. # When using gcc, CCA2K isn't needed....
  89. CCA2K=$(CC)
  90.  
  91. include unixhead.mak
  92.  
  93. include gs.mak
  94. include lib.mak
  95. include jpeg.mak
  96. include libpng.mak
  97. include zlib.mak
  98. include devs.mak
  99.  
  100. # Following is from unixtail.mak, we have a different link step.
  101. unix__=gp_nofb.o gp_unix.o gp_unifs.o gp_unifn.o
  102. unix_.dev: $(unix__)
  103.     $(SETMOD) unix_ $(unix__)
  104.  
  105. gp_unix.o: gp_unix.c $(AK) $(string__h) $(gx_h) $(gsexit_h) $(gp_h) \
  106.   $(time__h)
  107.  
  108. sysv__=gp_nofb.o gp_unix.o gp_unifs.o gp_unifn.o gp_sysv.o
  109. sysv_.dev: $(sysv__)
  110.     $(SETMOD) sysv_ $(sysv__)
  111.  
  112. gp_sysv.o: gp_sysv.c $(time__h) $(AK)
  113.  
  114. ansi2knr: ansi2knr.c $(stdio__h) $(string__h) $(malloc__h)
  115.     $(CCA2K) $(O)ansi2knr ansi2knr.c
  116.  
  117. echogs: echogs.c
  118.     $(CCAUX) $(O)echogs echogs.c
  119.  
  120. genarch: genarch.c $(stdpre_h)
  121.     $(CCAUX) $(O)genarch genarch.c
  122.  
  123. genconf: genconf.c $(stdpre_h)
  124.     $(CCAUX) $(O)genconf genconf.c
  125.  
  126. geninit: geninit.c $(stdio__h) $(string__h)
  127.     $(CCAUX) $(O)geninit geninit.c
  128.  
  129. INCLUDE=/usr/include
  130. gconfig_.h: unixtail.mak echogs
  131.     ./echogs -w gconfig_.h -x 2f2a -s This file was generated automatically. -s -x 2a2f
  132.     sh -c 'if ( test -f $(INCLUDE)/dirent.h ); then ./echogs -a gconfig_.h -x 23 define HAVE_DIRENT_H; fi'
  133.     sh -c 'if ( test -f $(INCLUDE)/ndir.h ); then ./echogs -a gconfig_.h -x 23 define HAVE_NDIR_H; fi'
  134.     sh -c 'if ( test -f $(INCLUDE)/sys/dir.h ); then ./echogs -a gconfig_.h -x 23 define HAVE_SYS_DIR_H; fi'
  135.     sh -c 'if ( test -f $(INCLUDE)/sys/ndir.h ); then ./echogs -a gconfig_.h -x 23 define HAVE_SYS_NDIR_H; fi'
  136.     sh -c 'if ( test -f $(INCLUDE)/sys/time.h ); then ./echogs -a gconfig_.h -x 23 define HAVE_SYS_TIME_H; fi'
  137.     sh -c 'if ( test -f $(INCLUDE)/sys/times.h ); then ./echogs -a gconfig_.h -x 23 define HAVE_SYS_TIMES_H; fi'
  138.  
  139. LIB_ONLY=gslib.o gsnogc.o gconfig.o gscdefs.o
  140. $(GS): $(ld_tr) echogs $(LIB_ALL) $(DEVS_ALL) $(LIB_ONLY)
  141.     ./echogs -w ldt.tr -n - $(CCLD) $(LDFLAGS) $(XLIBDIRS) -o $(GS)
  142.     ./echogs -a ldt.tr -n -s $(LIB_ONLY) -s
  143.     cat $(ld_tr) >>ldt.tr
  144.     ./echogs -a ldt.tr -s - $(EXTRALIBS) -lm
  145.     LD_RUN_PATH=$(XLIBDIR); export LD_RUN_PATH; $(SH) <ldt.tr
  146.  
  147. # Following is from unix-end.mak, we omit the install and tar_cat rules.
  148. pg:
  149.     make GENOPT='' CFLAGS='-pg -O $(GCFLAGS) $(XCFLAGS)' LDFLAGS='$(XLDFLAGS) -pg' XLIBS='Xt SM ICE Xext X11' CCLEAF='$(CCC)'
  150.  
  151. gconfigv.h: $(MAKEFILE) echogs
  152.     $(EXP)echogs -w gconfigv.h -x 23 define USE_ASM -x 2028 -q $(USE_ASM)-0 -x 29
  153.     $(EXP)echogs -a gconfigv.h -x 23 define USE_FPU -x 2028 -q $(FPU_TYPE)-0 -x 29
  154.     $(EXP)echogs -a gconfigv.h -x 23 define EXTEND_NAMES 0$(EXTEND_NAMES)
  155.  
  156.